package com.shengcheng.threadpool;


import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;


@Data
@ConfigurationProperties(prefix = "thread.pool")
public class MyThreadProperties {
    /**
     *     core-pool-size: 16
     *     maximum-pool-size: 32
     *     keep-alive-time: 50
     *     queue-length
     */
    private Integer corePoolSize = 16;
    private Integer maximumPoolSize = 32;
    private Integer keepAliveTime = 50;
    private Integer queueLength = 100;
}
